package dk.nordahl.btremote;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import android.app.Application;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.util.Log;

public class BTRemote extends Application {

	
	private BluetoothDevice btDevice;
	private BluetoothSocket btSocket;
	private InputStream IPS;
	private OutputStream OPS;


	
	
	public void Connect ()
	{
    	try {
			btSocket.connect();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			Log.i("Connection Error", "Socket not connected");
		}
		InputStream TIPS = null;
		OutputStream TOPS = null;
		try {
			TIPS = btSocket.getInputStream();
			TOPS = btSocket.getOutputStream();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		IPS = TIPS;
		OPS = TOPS;

	}
	
	public BluetoothSocket getBtSocket() {
		return btSocket;
	}
	public void setBtSocket(BluetoothSocket btSocket) {
		this.btSocket = btSocket;
	}
	public BluetoothDevice getBtDevice() {
		return btDevice;
	}
	public void setBtDevice(BluetoothDevice btDevice) {
		this.btDevice = btDevice;
	}
	public InputStream getIPS() {
		return IPS;
	}
	public void setIPS(InputStream iPS) {
		IPS = iPS;
	}
	public OutputStream getOPS() {
		return OPS;
	}
	public void setOPS(OutputStream oPS) {
		OPS = oPS;
	}

}
